package com.mall.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 网关权限配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "auth")
public class GatewayAuthProperties {

    /**
     * 白名单路径
     */
    private List<String> whitePaths;

    /**
     * 管理员权限路径
     */
    private List<String> adminPaths;

}
